import { CACHE_MANAGER, Cache } from "@nestjs/cache-manager";
import { Inject, Injectable } from "@nestjs/common";
import { UserEntity } from "src/entity";
import { UserService } from "src/user/service/user.service";
import { EntitySubscriberInterface, EventSubscriber, UpdateEvent } from "typeorm";

@EventSubscriber()
export class UserSubscriber implements EntitySubscriberInterface {
    constructor(private readonly userService: UserService) {}

    listenTo(): string | Function {
        return UserEntity;
    }

    async afterUpdate(event: UpdateEvent<UserEntity>) {}
}
